<!DOCTYPE html>
<html>
<head>
    <title>值班账单</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <a @click="reset">
                        <i class="fa fa-refresh"></i>
                    </a>
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.orderId" placeholder="订单编号">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.name" placeholder="客户名称">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input class="form-control input-sm" v-model="q.beginPaytime" @click="checkbeginPaytime" placeholder="支付时间起" />
                    <label>至</label>
                    <input class="form-control input-sm" v-model="q.endPaytime" @click="checkendPaytime" placeholder="支付时间止"/>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.payment">
                        <option disabled value="">支付方式</option>
                        <option value="">全部</option>
                        <option v-for="item in paymentList" :value="item.value">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.productionStatus">
                        <option disabled value="">订单状态</option>
                        <option value="">全部</option>
                        <option v-for="item in productionStatusList" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.payStatus">
                        <option disabled value="">付款状态</option>
                        <option value="">全部</option>
                        <option v-for="item in PayStatusEnum" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input class="form-control input-sm" v-model="q.beginCreatetime" @click="checkBeginDate" placeholder="下单时间起" />
                    <label>至</label>
                    <input class="form-control input-sm" v-model="q.endCreatetime" @click="checkEndDate" placeholder="下单时间止"/>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.merchantsSalesMan">
                        <option disabled value="">业务员</option>
                        <option value="">全部</option>
                        <option v-for="item in usernames" :value="item">{{item}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.onCredit">
                        <option disabled value="">是否挂账</option>
                        <option value="">全部</option>
                        <option value=0>否</option>
                        <option value=1>是</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <br>
                <a class="btn btn-primary btn-sm" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
                <a class="btn btn-primary btn-sm" @click="exportExcel"><i class="fa fa-sign-out"></i>&nbsp;导出</a><br>
                <div style="color: red">
                    应付订单总额:{{totalMoney}}&nbsp;&nbsp;&nbsp;实付订单总额:{{payedMoney}}&nbsp;&nbsp;&nbsp;&nbsp;支付宝总额:{{alipayTatal}}&nbsp;&nbsp;&nbsp;
                    微信总额:{{weixinTatal}}&nbsp;&nbsp;&nbsp;现金总额:{{cashTatal}}&nbsp;&nbsp;&nbsp;现金支付总额:{{moneyTatal}}&nbsp;&nbsp;&nbsp;银联总额:{{unTatal}}&nbsp;&nbsp;&nbsp;扫码支付总额:{{sweepcodeTatal}}&nbsp;&nbsp;&nbsp;数据总条数:{{totalCount}}
                </div>
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

</div>

<script src="${request.contextPath}/statics/js/modules/mercharReport/orderinfo.js?_${.now?long}"></script>
</body>
</html>